﻿@model IEnumerable<VideoCache.Server.Model.RoleInfo>

@{
    ViewBag.Title = "角色管理";
}
<h2>@ViewBag.Title</h2>
<p>
    @Html.ActionLink("新建", "Create")
    @Html.ActionLink("删除", "Delete", null, new { @class = "selectDelete" })
</p>
<table width="100%" class="list">
<thead>
    <tr>
        <th width="10"><input type="checkbox" group="chk" class="selectAll" /></th>
        <th width="50">编号</th>
        <th width="150">角色名称</th>
        <th>显示名称</th>
        <th width="80"></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model) {
    <tr>
        <td><input type="checkbox" group="chk" class="selectAll" /></td>
        <td>@item.Id</td>
        <td>@item.Name</td>
        <td>@item.DisplayName</td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id }, new { @class = "delete" })
        </td>
    </tr>
}
</tbody>
</table>

